package host.springboot.framework.context.mvc.jackson.serialization;

import com.fasterxml.jackson.datatype.jsr310.ser.OffsetDateTimeSerializer;
import org.jspecify.annotations.NonNull;

import java.time.format.DateTimeFormatter;

/**
 * 自定义 {@code OffsetDateTime} 序列化器
 *
 * @author JiYinchuan
 * @since 1.0.0
 */
public class CustomOffsetDateTimeSerializer extends OffsetDateTimeSerializer {

    /**
     * 构造器
     *
     * @param formatter 格式化规则
     * @since 1.0.0
     */
    public CustomOffsetDateTimeSerializer(@NonNull DateTimeFormatter formatter) {
        super(OffsetDateTimeSerializer.INSTANCE, null, formatter);
    }
}
